<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head><title>MyIsern - Edit Collaboration</title></head>
<body>
MyIsern - Edit Collaboration
 
   <hr align="left" width="400">
  <stripes:errors action="/EditCollaboration.action"/>
  <stripes:form id="EditCollaborationForm" action="/EditCollaboration.action" focus="">
     <table>
        <tr>
           <td>Name:</td>
           <td width="300"><stripes:text name="name"/></td>
        </tr>
        <tr>
           <td>Description:</td>
           <td><stripes:text name="description"/></td>
        </tr>
        <tr> 
           <td>Collaboration Organizations:</td>
          <td>
           <c:forEach var="org" items="${actionBean.collaboratingOrganizations}">
           <c:if test="${not empty org}">
             <stripes:checkbox id="org_${org}" name="collaboratingOrganizations" value="${org}" />
             <stripes:label for="org_${org}">${org}</stripes:label>
             <br/>
           </c:if>
           </c:forEach>
           </td>
        </tr>
        <tr>
           <td>
             <stripes:label for="newCollaboratingOrganization" >New Organization</stripes:label>
           </td>
           <td>
              <stripes:select size="1" name="newCollaboratingOrganization">
              <stripes:option/>
               <stripes:options-collection collection="${organizations}"/>
             </stripes:select>
           </td>
        </tr>
        <tr> 
           <td>Collaboration Types:</td>
          <td>
           <c:forEach var="coltype" items="${actionBean.collaborationTypes}">
           <c:if test="${not empty coltype}">
             <stripes:checkbox id="coltype_${coltype}" name="collaborationTypes" value="${coltype}" />
             <stripes:label for="coltype_${coltype}">${coltype}</stripes:label>
             <br/>
           </c:if>
           </c:forEach>
           </td>
        </tr>
        <tr>
           <td>
             <stripes:label for="newCollaborationType" >New Collaboration Type</stripes:label>
           </td>
           <td>
             <stripes:text name="newCollaborationType"/>
           </td>
        </tr>
        <tr> 
           <td>Outcome Types:</td>
          <td>
           <c:forEach var="outtype" items="${actionBean.outcomeTypes}">
           <c:if test="${not empty outtype}">
             <stripes:checkbox id="outtype_${outtype}" name="outcomeTypes" value="${outtype}" />
             <stripes:label for="outtype_${outtype}">${outtype}</stripes:label>
             <br/>
           </c:if>
           </c:forEach>
           </td>
        </tr>
        <tr>
           <td>
             <stripes:label for="newOutcomeType" >New OutcomeType</stripes:label>
           </td>
           <td>
             <stripes:text name="newOutcomeType"/>
           </td>
        </tr>
        <tr> 
           <td>Years:</td>
          <td>
           <c:forEach var="year" items="${actionBean.years}">
           <c:if test="${not empty year}">
             <stripes:checkbox id="year_${year}" name="years" value="${year}" />
             <stripes:label for="year_${year}">${year}</stripes:label>
             <br/>
           </c:if>
           </c:forEach>
           </td>
        </tr>
        <tr>
           <td>
             <stripes:label for="newYear" >New Year</stripes:label>
           </td>
           <td>
             <stripes:text name="newYear"/>
           </td>
        </tr>
        <tr>
             <td style="text-align: center;">
             <stripes:submit name="save" value="Save"/>
           </td>
              <td style="text-align: center;">
              <stripes:submit name="cancel" value="Cancel"/>
           </td>
        </tr>
     </table>
   </stripes:form>
 
 
 
</body>
</html>

